<%@ page language="java" pageEncoding="UTF-8"%><%@ include
	file="/WEB-INF/commons/taglibs.jsp"%>
<%@ page import="com.google.appengine.api.users.User"%>
<%@ page import="com.google.appengine.api.users.UserService"%>
<%@ page import="com.google.appengine.api.users.UserServiceFactory"%>
<%
	UserService userService = UserServiceFactory.getUserService();
	User user = userService.getCurrentUser();
%>
<div id="text-menu">
<ul>
	<li class="xleft"><a href="<c:url value="/flow/create" />">分享一个电话</a></li>
	<li class="xright">
	<%
		if (user != null) {
	%>欢迎你, <%=user.getNickname()%>&nbsp;&nbsp;<a
		href="<%=userService.createLogoutURL(request.getRequestURI())%>">退出</a>
	<%
		} else {
	%> <a href="<%=userService.createLoginURL(request.getRequestURI())%>">登录</a>
	<%
		}
	%>
	</li>
</ul>
</div>
